package com.lsyonlygoddes.adapter;

import lombok.extern.slf4j.Slf4j;

// 二相电转为三相电的适配器类
@Slf4j
public class TwoToThreeAdapter extends TwoCharger implements ThreeCharger {
    @Override
    public void chargeBy3() {
        log.info("将二相电转为三相电");
        this.chargeBy2();// TwoToThreeAdapter extends TwoCharger => 是一个TwoCharger类
    }
}
